import axios from "../../utils/axios";

// 列表
export function getList(query) {
    return axios({
        url: "/admin/auth/admin/index",
        method: "get",
        params: query
    });
}

// 添加
export function add(query) {
    return axios({
        url: "/admin/auth/admin/save",
        method: "post",
        data: query
    });
}

// 删除
export function del(query) {
    return axios({
        url: "/admin/auth/admin/delete",
        method: "post",
        data: query
    });
}

// 修改
export function edit(query) {
    return axios({
        url: "/admin/auth/admin/edit",
        method: "post",
        data: query
    });
}

// 获取机构
export function getJg(query) {
    return axios({
        url: "/admin/auth/admin/getGsjg",
        method: "post",
        data: query
    });
}

// 获取角色
export function getRoles(query){
    return axios({
        url:"/admin/auth/admin/roleList",
        method:"get",
        params: query
    });
}

